<h1>R&eacute;capitulatif de votre commande.</h1>

<div>Date d'emprunt:<?php echo CakeTime::format('F jS, Y',$order['Order']['bookingstartdate']);?><div>
<div>Date de retour:<?php echo CakeTime::format('F jS, Y',$order['Order']['bookingenddate']);?><div>
<div class='row'>
	<div class='span4'>
	<?php
		echo '<legend>Contact</legend>';
		echo '<strong>'.$this->Html->div(false,(isset($order['Order']['title'])?$order['Order']['title']:'').' '.$order['Order']['firstname'].' '.$order['Order']['lastname']).'</strong>';
		echo (!empty($order['Order']['associatenumber'])) ? 
			$this->Html->div(false,'Adh&eacute;rent : '.$order['Order']['associatenumber']):
			'';
		echo $this->Html->div(false,$order['Order']['email']);
		echo isset($order['Phonenumber']['phonenumber'])?$this->Html->div(false,$order['Phonenumber']['phonenumber']):'';
	?>
	</div>
	<div class='span4'>
	<?php
	if(isset($order['Billingaddress']['line1'])&&isset($order['Billingaddress']['postcode'])&&isset($order['Billingaddress']['city'])){
			echo '<legend>Adresse de facture</legend>';
			echo '<strong>'.$this->Html->div(false,$order['Billingaddress']['firstname'].' '.$order['Billingaddress']['lastname']).'</strong>';
			echo $this->Html->div(false,$order['Billingaddress']['line1']);
			echo isset($order['Billingaddress']['line2'])?$this->Html->div(false,$order['Billingaddress']['line2']):'';
			echo isset($order['Billingaddress']['line3'])?$this->Html->div(false,$order['Billingaddress']['line3']):'';
			echo $this->Html->div(false,$order['Billingaddress']['postcode']);
			echo $this->Html->div(false,$order['Billingaddress']['city']);
			echo isset($order['Billingaddress']['country'])?$this->Html->div(false,$order['Billingaddress']['country']):'';
		}
	?>		
	</div>	
	<div class='span4'>
	<?php
		if(isset($order['Shippingaddress']['line1'])&&isset($order['Shippingaddress']['postcode'])&&isset($order['Shippingaddress']['city'])){
			echo '<legend>Adresse de livraison</legend>';
			echo '<strong>'.$this->Html->div(false,$order['Shippingaddress']['firstname'].' '.$order['Shippingaddress']['lastname']).'</strong>';
			echo $this->Html->div(false,$order['Shippingaddress']['line1']);
			echo isset($order['Shippingaddress']['line2'])?$this->Html->div(false,$order['Shippingaddress']['line2']):'';
			echo isset($order['Shippingaddress']['line3'])?$this->Html->div(false,$order['Shippingaddress']['line3']):'';
			echo $this->Html->div(false,$order['Shippingaddress']['postcode']);
			echo $this->Html->div(false,$order['Shippingaddress']['city']);
			echo isset($order['Shippingaddress']['country'])?$this->Html->div(false,$order['Shippingaddress']['country']):'';
		}
	?>
	</div>
</div>
<h3>Vos Produits</h3>
<table class='table'>
<?php 
$ordersproducts = $order['OrdersProduct'];
echo $this->ProductBuilder->displayProductTableHeader(false);
foreach($ordersproducts as $orderproduct){
	echo $this->ProductBuilder->displayProductSummaryTableRow($orderproduct);
}
?>
</table>
<?php $this->Html->Link('Retour &egrave; notre site de r&eacute;servation',array('controller'=>'products','action'=>'index'));?>
